package com.hzhq.contract.service;

import com.hzhq.contract.bean.dto.ContractTemplateDTO;
import com.hzhq.contract.bean.entity.Contract;
import com.hzhq.contract.result.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.core.query.Query;


/**
 * @author hzhq
 * @create 2021/4/8 11:39 下午
 * @email hzhq1255@163.com
 */
public interface TemplateService {



    Result<Object> saveTemplate(ContractTemplateDTO contractTemplateDTO);

    Result<Object> searchAllPageByQuery(Query query, Integer currentPage, Integer pageSize);

    Result<Object> deleteTemplate(String templateId);

    Result<Object> getPage(Integer currentPage, Integer pageSize);

    Result<Object> getList();

    Result<Object> getPageByApplicant(String username, Integer currentPage, Integer pageSize);

    Result<Object> getPageByDepart(String departName,Integer currentPage, Integer pageSize);

    Result<Object> getByTemplateName(String templateName);

    Result<Object> getOneByTemplateId(String templateId);

    Page<ContractTemplateDTO> searchAllPages(ContractTemplateDTO templateDTO, Integer currentPage, Integer pageSize);


}
